﻿<link rel="stylesheet" href="http://a.tbcdn.cn/tbsp/tbsp.css?t=20090602.css">
<link rel="Stylesheet" href="http://a.tbcdn.cn/apps/tradeface/trademanager/??1.0/order_detail.css,detail/20120419/detail.css?t=20120221.css" />
<link rel="Stylesheet" href="http://a.tbcdn.cn/apps/tradeface/trademanager/1.0/common.css?t=20090224.css" />

<div id="page" style="margin-top: -40px;">
    <!-- from c2c vmcommon -->	
    <div id="content">
        <div id="detail-panel" class="grid-c" data-spm="2">
            <div class="box order-dashboard">
                <div class="bd">
                    <div class="actions">
                    <?php if ($this->_var['status'] == "WAIT_SELLER_SEND_GOODS"): ?>
                        <span class="skin-blue"><a class="short-btn" href="javascript:delivery(<?php echo $this->_var['tid']; ?>)"
                            data-spm-anchor-id="a1z09.3.2.2">发货</a> </span>
                    <?php endif; ?>
                       	<span class="skin-gray"><a class="short-btn" href="javascript:showmemo(<?php echo $this->_var['tid']; ?>,<?php echo $this->_var['seller_flag']; ?>,<?php if ($this->_var['seller_memo'] == null): ?>''<?php else: ?>'<?php echo $this->_var['seller_memo']; ?>'<?php endif; ?>)">备忘</a></span>
                    </div>
                </div>
            </div>
            <div class="tabs-container" id="J_TabView" data-spm="3" data-spm-max-idx="7">
                <ul class="tabs-nav">
                    <li class="current" id="tab0" onmouseover="orderinfo(this)">订单信息</li>
                    <li id="tab1" onmouseover="addrinfo(this)">收货和物流信息</li>
                </ul>
                <div class="tabs-panels">
                    <div class="info-box order-info" id="orderinfo">
                        <h2>
                            订单信息</h2>
                        <div class="bd">
                            <table>
                                <colgroup>
                                    <col width="235">
                                    <col width="120">
                                    <!-- 宝贝 -->
                                    <col class="col1">
                                    <!-- 交易状态 -->
                                    <col class="col2">
                                    <!-- 单价（元） -->
                                    <col class="col3">
                                    <!-- 数量 -->
                                    <col class="col4">
                                    <!-- 优惠 -->
                                    <col class="col5">
                                    <!-- 合计（元） -->
                                    <col class="col6">
                                    <!-- 运费（元） -->
                                    <!-- 买/卖家信息 -->
                                </colgroup>
                                <tbody class="contact-info">
                                    <tr>
                                        <th colspan="7">
                                            <h4>
                                                买家信息</h4>
                                        </th>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            昵称： <span class="nickname"><?php echo $this->_var['buyer_nick']; ?></span> <span class="ww-light ww-large" data-nick="<?php echo $this->_var['buyer_nick']; ?>"
                                                data-display="inline"><a href='http://amos.im.alisoft.com/msg.aw?v=2&uid=<?php echo urlencode($this->_var['buyer_nick']); ?>&site=cntaobao&s=1&charset=utf-8'
                                                    id="wangwanglink"  class="ww-inline ww-online" title="点此可以直接和卖家交流选好的宝贝，或相互交流网购体验，还支持语音视频噢。"
                                                    data-spm-anchor-id="a1z09.3.3.1"><span>
                                                        <img border="0" src='http://amos.alicdn.com/realonline.aw?v=2&uid=<?php echo urlencode($this->_var['order']['buyer_nick']); ?>site=cntaobao&s=1&charset=utf-8'
                                                            alt="点击这里给我发消息" /></span></a></span>
                                        </td>
                                        <td colspan="6">
                                            真实姓名： <span class="name"><?php echo $this->_var['receiver_name']; ?></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            所在地区：<span class="city"><?php echo $this->_var['buyer_area']; ?></span>
                                        </td>
                                        <td colspan="6" class="contact">
                                            联系电话：<span class="tel"><?php echo $this->_var['receiver_mobile']; ?>&nbsp;&nbsp;<?php echo $this->_var['receiver_phone']; ?></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="8">
                                            <div style="position: absolute;">
                                                支<span style="padding: 0.5em">付</span>宝：
                                            </div>
                                            <div style="padding-left: 5em;">
                                                <?php echo $this->_var['alipay_id']; ?>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                                <!-- 订单信息 -->
                                <tbody class="order">
                                    <tr class="sep-row">
                                        <td colspan="8">
                                        </td>
                                    </tr>
                                    <tr class="order-hd">
                                        <th class="item">
                                            宝贝
                                        </th>
                                        <th class="sku">
                                            宝贝属性
                                        </th>
                                        <th class="status">
                                            状态
                                        </th>
                                        <th class="price">
                                            单价(元)
                                        </th>
                                        <th class="num">
                                            数量
                                        </th>
                                        <th class="discount">
                                            优惠
                                        </th>
                                        <th class="order-price">
                                            商品总价(元)
                                        </th>
                                        <th class="post-fee">
                                            运费(元)
                                        </th>
                                    </tr>
                                    <tr class="order-item">
                                        <td class="item">
                                            <div class="pic-info">
                                                <div class="pic s50">
                                                    <!--<a hidefocus="true" href="<?php echo $this->_var['pic_path']; ?>"
                                                         data-spm-anchor-id="a1z09.3.3.6">-->
                                                    <img alt="查看宝贝详情" src="<?php echo $this->_var['pic_path']; ?>">
                                                    <!-- </a>-->
                                                </div>
                                            </div>
                                            <div class="txt-info">
                                                <div class="desc">
                                                    <span class="name"><a href="http://item.taobao.com/item.htm?id=<?php echo $this->_var['num_iid']; ?>" title="<?php echo $this->_var['title']; ?>"
                                                         data-spm-anchor-id="a1z09.3.3.7"><?php echo $this->_var['title']; ?></a></span> <span class="good-icons">
                                                        </span>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="sku">
                                        </td>
                                        <td class="status">
                                            <?php if ($this->_var['status'] == "TRADE_NO_CREATE_PAY"): ?> 没有创建支付宝交易 <?php elseif ($this->_var['name'] == "WAIT_BUYER_PAY"): ?>
                                            未付款 <?php elseif ($this->_var['status'] == "WAIT_SELLER_SEND_GOODS"): ?> 未发货 <?php elseif ($this->_var['status'] == "WAIT_BUYER_CONFIRM_GOODS"): ?>
                                            等待买家确认收货 <?php elseif ($this->_var['status'] == "TRADE_BUYER_SIGNED"): ?> 买家已签收 <?php elseif ($this->_var['status'] == "TRADE_FINISHED"): ?>
                                            交易成功 <?php elseif ($this->_var['status'] == "TRADE_CLOSED"): ?> 退款成功 <?php elseif ($this->_var['status'] == "TRADE_CLOSED_BY_TAOBAO"): ?>
                                            关闭交易 <?php endif; ?>
                                        </td>
                                        <td class="price">
                                            <?php echo $this->_var['price']; ?>
                                        </td>
                                        <td class="num">
                                            <?php echo $this->_var['num']; ?>
                                        </td>
                                        <td class="discount">
                                            -
                                        </td>
                                        <td class="order-price" rowspan="1">
                                            <?php echo $this->_var['total_price']; ?>
                                        </td>
                                        <td class="post-fee" rowspan="1">
                                            <span><?php echo $this->_var['post_fee']; ?></span>
                                            <br>
                                            <?php if ($this->_var['post_fee'] == "0.00"): ?> ( 卖家包邮 ) <?php endif; ?>
                                        </td>
                                    </tr>
                                    <tr class="order-ft">
                                        <td colspan="8">
                                            <div class="get-money" colspan="6">
                                                <br>
                                                实收款： <strong><?php echo $this->_var['payment']; ?></strong>元
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                                <!-- 其它信息 -->
                                <tbody class="misc-info">
                                    <tr class="sep-row">
                                        <td colspan="8">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="8">
                                            <span class="label">订单编号：</span> <span class="order-num"><?php echo $this->_var['oid']; ?></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="8">
                                            <span class="label">支付宝交易号：</span> <span class="alilay-num"><?php echo $this->_var['alipay_no']; ?></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="8">
                                            <span class="label">成交时间：</span> <span class="trade-time"><?php echo $this->_var['created']; ?></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="8">
                                            <span class="label">付款时间：</span> <span class="pay-time"><?php echo $this->_var['pay_time']; ?></span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="info-box address-and-logistics-info" id="addrinfo" style="display: none;">
                        <h2>
                            收货和物流信息</h2>
                        <div class="bd">
                            <h3>
                                物流信息</h3>
                            <table class="simple-list logistics-info">
                                <tbody>
                                    <tr>
                                        <th>
                                            收货地址：
                                        </th>
                                        <td>
                                            <?php echo $this->_var['receiver_name']; ?> ，<?php echo $this->_var['receiver_mobile']; ?>，<?php echo $this->_var['receiver_phone']; ?> ，<?php echo $this->_var['receiver_state']; ?> <?php echo $this->_var['receiver_city']; ?>
                                            <?php echo $this->_var['receiver_district']; ?> <?php echo $this->_var['receiver_address']; ?> ，<?php echo $this->_var['receiver_zip']; ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            运送方式：
                                        </th>
                                        <td>
                                            卖家包邮
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            买家留言：
                                        </th>
                                        <td>
                                            <?php echo $this->_var['buyer_message']; ?>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
